package com.qianf.qfoffice.service.impl;


import com.qianf.qfoffice.dao.GradeDao;
import com.qianf.qfoffice.entity.Grade;
import com.qianf.qfoffice.service.GradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GradeServiceImpl implements GradeService {

    @Autowired
    private GradeDao gradeDao;

    @Override
    public List<Grade> findAllGrade() {
        return gradeDao.findAllGrade();
    }

    @Override
    public int deleteGradeById(int id) {
        return gradeDao.deleteGradeById(id);
    }

    @Override
    public int updateGrade(Grade grade) {
        return gradeDao.updateGrade(grade);
    }

    @Override
    public int addGrade(Grade grade) {
        return gradeDao.addGrade(grade);
    }
}
